package com.kaili.pojo.dto.notice;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by renzhikun on 18-11-28.
 */
@Data
public class NoticeAddDTO {

    @Pattern(regexp = "^[A-Za-z0-9]{0,30}$",message = "运单应为[A-Za-z0-9]组成的1-30位字符")
    @ApiModelProperty("运单号")
    private String ewbNo;

    @ApiModelProperty("物品名称")
    private String goodsName;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    private Date createdTime;

    @ApiModelProperty("创建人")
    private Integer createdBy;

    @NotNull(message = "派送费不能为空")
    @ApiModelProperty("派送费")
    private BigDecimal deliveryChargeOld;

    @NotNull(message = "派送调整状态不能为空")
    @ApiModelProperty("派送调整状态  0 不调整  1  自提转派送  2派送转自提")
    private Integer adjustStatus;

    @NotNull(message = "修改后派送费不能为空")
    @ApiModelProperty("修改后派送费")
    private BigDecimal deliveryChargeNew;

    @NotNull(message = "通知状态不能为空")
    @ApiModelProperty("通知状态  0未通知  1已通知")
    private Integer noticeStatus;

    @ApiModelProperty("是否删除标识  1未删除  0 已删除")
    private Integer rdStatus;

    @NotNull(message = "通知类型不能为空")
    @ApiModelProperty("通知类型  0 短信 1电话")
    private Integer type;

    @ApiModelProperty("修改人")
    private Integer modifiedBy;

    @ApiModelProperty("修改时间")
    private Date modifiedTime;

    @ApiModelProperty("开始时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String endTime;
}
